home *** CD-ROM | disk | FTP | other *** search
- package netscape.net;
-
- import java.io.IOException;
- import java.io.OutputStream;
-
- public class URLOutputStream extends OutputStream {
- protected URLConnection connection;
-
- public URLOutputStream(URLConnection var1) {
- this.connection = var1;
- }
-
- protected native void open() throws IOException;
-
- public native void write(int var1) throws IOException;
-
- public void write(byte[] var1) throws IOException {
- this.writeBytes(var1, 0, var1.length);
- }
-
- public void write(byte[] var1, int var2, int var3) throws IOException {
- this.writeBytes(var1, var2, var3);
- }
-
- private native void writeBytes(byte[] var1, int var2, int var3) throws IOException;
-
- public void close() throws IOException {
- this.pClose();
- this.connection.currentOutputStream = null;
- }
-
- public native void pClose() throws IOException;
-
- protected void finalize() {
- try {
- this.close();
- } catch (IOException var1) {
- }
- }
- }
-